package com.itic.appbase.framework.type;

public enum TradeCollageType {
    No("0","未打款"),YES("1","已打款");
    private String type;
    private String name;

    TradeCollageType(String type, String name) {
        this.type = type;
        this.name = name;
    }

    public String getType() {
        return type;
    }

    public String getName() {
        return name;
    }

    public void setType(String type) {
        this.type = type;
    }

    public void setName(String name) {
        this.name = name;
    }

    public  static TradeCollageType getTradeCollageType(String type){
        TradeCollageType tradeCollageType = null;
        switch (type){
            case "0":
                tradeCollageType= TradeCollageType.No;
                break;
            case "1":
                tradeCollageType = TradeCollageType.YES;
                break;

        }
        return tradeCollageType;
    }
}
